<template>
  <div class="guid" v-if="list&&list.length">
    <div class="guid-prev guid-item">
      <van-icon name="arrow-left" />
        <router-link v-if="list[0].title" :to="'/code?id='+list[0]._id">{{list[0].title}}</router-link>
        <a v-else href="javascript:;">没有更多了</a>
    </div>
    <div class="guid-next guid-item">
     <router-link v-if="list[1].title" :to="'/code?id='+list[1]._id">{{list[1].title}}</router-link>
        <a v-else href="javascript:;">没有更多了</a>
      <van-icon name="arrow" />
    </div>
  </div>
</template>

<script>
  export default {
    props:{
      list:{
        type:Array,
        default(){
          return []
        }
      }
    }
  }
</script>

<style scoped>

</style>
